<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
    <link rel="stylesheet" href="/static/style.css">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
</head>
<body>
<!--主内容开始-->
<div class="admin-content">
    <div class="layui-form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label" for="jobNumber">工号</label>
                <div class="layui-input-block">
                    <input id="jobNumber" name="jobNumber" type="text" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" for="username">姓名</label>
                <div class="layui-input-block">
                    <input id="username" name="username" type="text" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" for="academy">学院</label>
                <div class="layui-input-block">
                    <input id="academy" name="academy" type="text" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" for="sex">性别</label>
                <div class="layui-input-block">
                    <select id="sex" name="sex">
                        <option value="">不限</option>
                        <option value="1">男</option>
                        <option value="0">女</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <button lay-submit lay-filter="search" class="layui-btn"><i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                </button>
            </div>
        </div>
    </div>
    <table id="userList" class="layui-table" lay-filter="user-list"></table>
</div>
<!--主内容结束-->
<script type="text/html" id="listToolBar">
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="add">
        <i class="layui-icon layui-icon-edit"></i>添加
    </a>
</script>

<script type="text/html" id="userStatus">
    {{#  if(d.role == 'admin'){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs">
        管理员
    </a>
    {{#  } else if (d.role == 'user') { }}
    <a class="layui-btn layui-btn layui-btn-xs">
        用户
    </a>
    {{#  } }}
</script>

<script type="text/html" id="userSex">
    {{#  if(d.sex == 1 || d.sex == 'true'){ }}
    男
    {{#  } else{ }}
    女
    {{#  } }}
</script>
<script src="/static/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/lib/'
    }).extend({
        addCandidate: 'addCandidate'
    }).use(['addCandidate', 'jquery', 'layer', 'laytpl', 'form'], function () {
        var $ = layui.$
            , layer = layui.layer
            , form = layui.form;

    });
</script>
</body>
</html>